package top.yxqz.springmvc.errorhandler.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 余小小
 * @date: 2023/5/18
 * @description：
 */
@Controller
@RequestMapping("/error")
public class ErrorHandlerController {
    @GetMapping("/test1")
    public String test1() {
        int number = 1 / 0;
        number++;
        return "error";
    }
}
